﻿<%@ Page Language="C#" MasterPageFile="~/SetSystem/SetSystem.master" AutoEventWireup="true" CodeBehind="PaperLibManage.aspx.cs" Inherits="Web.SetSystem.WebForm9" Title="" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<li><a href="AdmManage.aspx">学生和员工库设置</a></li><li><a href="StuLibManage.aspx">学生信息库设置</a></li><li><a href="PaperLibManage.aspx">论文状态库设置</a></li><li><a href="TutorDefine.aspx">论文指导老师设置</a></li><li><a href="DefenseArrange.aspx">答辩安排设置</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<br />
    <asp:TabContainer ID="TabContainer1" runat="server">
    <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="文档状态库管理">
    <ContentTemplate>
       <table>
        <tr>
        <td valign="top"><asp:GridView ID="GridView_docstatus" runat="server" 
            AutoGenerateColumns="False" AllowPaging="True" 
            onpageindexchanging="GridView_docstatus_PageIndexChanging" PageSize="5">
            <Columns>
                <asp:BoundField DataField="Text" HeaderText="文档状态名称" />
            </Columns>
            <PagerStyle HorizontalAlign="Center" />
            <EmptyDataTemplate>
                <asp:Label ID="Label1" runat="server" 
                    Text="<%$ Resources:ErrorMessage, NoSuchData %>"></asp:Label>
            </EmptyDataTemplate>
        </asp:GridView></td>
        </tr></table>
        <table><tr>
        <td valign="top"><table>
            <tr>
                <td width="100px">
                    <asp:Label ID="Label_statusname" runat="server" Text="文档状态名称：" 
                         Width="100px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_statusname" runat="server" CssClass="ContentTextBox"></asp:TextBox>
                </td>
                <td>
                    <asp:ImageButton ID="ImageButton_addstatus" runat="server"  
                         ImageUrl="~/img/Control/Add.gif" 
                        onclick="ImageButton_addstatus_Click" CausesValidation="False"   /> 
                    <asp:ImageButton ID="ImageButton_delstatus" runat="server"  
                        ImageUrl="~/img/Control/Delete.gif" 
                        onclick="ImageButton_delstatus_Click" CausesValidation="False" />       
                </td>
                <td>
                    <asp:Label ID="Label_result1" runat="server" Text="" CssClass="Label_ReturnInfo"></asp:Label></td>  
             </tr>          
        </table></td>
        </tr>
        </table>
    </ContentTemplate>
    </asp:TabPanel>
    
    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="论文截止日期库管理">
    <ContentTemplate>
      <asp:GridView ID="GridView_deadline" runat="server" AutoGenerateColumns="False" 
            onrowdeleting="GridView_deadline_RowDeleting" 
            onrowediting="GridView_deadline_RowEditing" 
            onrowupdating="GridView_deadline_RowUpdating" 
            onrowcancelingedit="GridView_deadline_RowCancelingEdit" AllowPaging="True" 
            onpageindexchanging="GridView_deadline_PageIndexChanging"  PageSize="5" 
            >
            <Columns>
                <asp:TemplateField HeaderText="毕业年份">
                    <EditItemTemplate>
                        <asp:Label ID="Label_edit1" runat="server" Text='<%# Bind("gyear") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("gyear") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="立题申报截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("deadline1","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox2">
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator1_gv" runat="server" 
                        ControlToValidate="TextBox2" ErrorMessage="立题申报时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1_gv" runat="server" 
                        ControlToValidate="TextBox2" ErrorMessage="立题申报时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>                        
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("deadline1","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="任务书截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("deadline2","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox3_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox3">
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator2_gv" runat="server" 
                        ControlToValidate="TextBox3" ErrorMessage="任务书截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2_gv" runat="server" 
                        ControlToValidate="TextBox3" ErrorMessage="任务书截止时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>   
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("deadline2","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="开题报告截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("deadline3","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox4_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox4">
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator3_gv" runat="server" 
                        ControlToValidate="TextBox4" ErrorMessage="开题报告截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3_gv" runat="server" 
                        ControlToValidate="TextBox4" ErrorMessage="开题报告截止时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>   
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("deadline3","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="作品截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("deadline4","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox5">
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator4_gv" runat="server" 
                        ControlToValidate="TextBox5" ErrorMessage="作品截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4_gv" runat="server" 
                        ControlToValidate="TextBox5" ErrorMessage="作品截止时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>   
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("deadline4","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="论文截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("deadline5","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox6_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox6">
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator5_gv" runat="server" 
                        ControlToValidate="TextBox6" ErrorMessage="论文截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5_gv" runat="server" 
                        ControlToValidate="TextBox6" ErrorMessage="论文截止时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>   
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("deadline5","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="翻译截止">
                    <EditItemTemplate>
                        <table>
                        <tr>
                        <td><asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("deadline6","{0:d}") %>' Width="70px"></asp:TextBox>
                            <asp:CalendarExtender ID="TextBox7_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="TextBox7" >
                            </asp:CalendarExtender>
                        </td>
                        <td><asp:RegularExpressionValidator ID="RegularExpressionValidator6_gv" runat="server" 
                        ControlToValidate="TextBox7" ErrorMessage="翻译截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_dlgridview">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6_gv" runat="server" 
                        ControlToValidate="TextBox7" ErrorMessage="翻译截止时间不能为空" ValidationGroup="vg_dlgridview">*</asp:RequiredFieldValidator></td>
                        </tr></table>   
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("deadline6","{0:d}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="启用状态">
                    <EditItemTemplate>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>否</asp:ListItem>
                            <asp:ListItem>是</asp:ListItem>
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("use") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ButtonType="Image" CancelImageUrl="~/img/Control/Cancel.gif" 
                    DeleteImageUrl="~/img/Control/Delete.gif" EditImageUrl="~/img/Control/Edit.gif" 
                    ShowDeleteButton="True" ShowEditButton="True" 
                    UpdateImageUrl="~/img/Control/save.gif" CausesValidation="true" ValidationGroup="vg_dlgridview">
                    <ItemStyle Wrap="False" />
                </asp:CommandField>
            </Columns>
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        <asp:Label ID="Label_result2" runat="server" Text="" CssClass="Label_ReturnInfo"></asp:Label>
        <br />
        <table>
            <tr>
                <td colspan="12">
                    <asp:Label ID="Label_adddl" runat="server" Text="添加截止日期:" 
                         Width="100px"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label_gyear" runat="server"  Text="毕业年份:" Width="70px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_gyear" runat="server" CssClass="ContentTextBox" 
                        Width="80px"></asp:TextBox>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="TextBox_gyear" ErrorMessage="毕业年份格式（YYYY）" 
                        ValidationExpression="\d{4}" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox_gyear" ErrorMessage="毕业年份不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:Label ID="Label_dl1" runat="server"  Text="立题申报:" Width="70px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_dl1" runat="server" CssClass="ContentTextBox" Width="80px"></asp:TextBox>
                    <asp:CalendarExtender ID="TextBox_dl1_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="TextBox_dl1">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="TextBox_dl1" ErrorMessage="立题申报截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox_dl1" ErrorMessage="立题申报截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:Label ID="Label_dl2" runat="server"  Text="任务书:" Width="70px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_dl2" runat="server" CssClass="ContentTextBox" Width="80px"></asp:TextBox>
                    <asp:CalendarExtender ID="TextBox_dl2_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="TextBox_dl2">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="TextBox_dl2" ErrorMessage="任务书截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="TextBox_dl2" ErrorMessage="任务书截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator></td>
                <td>
                    <asp:Label ID="Label_dl3" runat="server"  Text="开题报告:" Width="70px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_dl3" runat="server" CssClass="ContentTextBox" 
                        Width="80px"></asp:TextBox>
                    <asp:CalendarExtender ID="TextBox_dl3_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="TextBox_dl3">
                    </asp:CalendarExtender>
                </td>
                <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                        ControlToValidate="TextBox_dl3" ErrorMessage="开题报告截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="TextBox_dl3" ErrorMessage="开题报告截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label_dl4" runat="server"  Text="作品:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_dl4" runat="server" CssClass="ContentTextBox" 
                        Width="80px"></asp:TextBox>
                    <asp:CalendarExtender ID="TextBox_dl4_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="TextBox_dl4">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                        ControlToValidate="TextBox_dl4" ErrorMessage="作品截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="TextBox_dl4" ErrorMessage="作品截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator></td>
                <td>
                    <asp:Label ID="Label_dl5" runat="server"  Text="论文:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_dl5" runat="server" CssClass="ContentTextBox" 
                        Width="80px"></asp:TextBox>
                    <asp:CalendarExtender ID="TextBox_dl5_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="TextBox_dl5">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                        ControlToValidate="TextBox_dl5" ErrorMessage="论文截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="TextBox_dl5" ErrorMessage="论文截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator></td>
                <td>                    
                    <asp:Label ID="Label_dl6" runat="server"  Text="翻译:"></asp:Label>
                </td>
                    <td><asp:TextBox ID="TextBox_dl6" runat="server" CssClass="ContentTextBox" 
                        Width="80px"></asp:TextBox>
                        <asp:CalendarExtender ID="TextBox_dl6_CalendarExtender" runat="server" 
                            Enabled="True" TargetControlID="TextBox_dl6">
                        </asp:CalendarExtender>
                </td>
                    <td>
                       <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                        ControlToValidate="TextBox_dl6" ErrorMessage="翻译截止时间格式不对" 
                        ValidationExpression="(^\d{0,1}\d\/\d{0,1}\d\/\d{4}$)|(^\d{4}\-\d{0,1}\d\-\d{0,1}\d$)" ValidationGroup="vg_adddl">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="TextBox_dl6" ErrorMessage="翻译截止时间不能为空" ValidationGroup="vg_adddl">*</asp:RequiredFieldValidator></td>
                    <td colspan="3">
                        <asp:CheckBox ID="CheckBox_inuse" runat="server" Text="是否启用" />
                </td>                    
            </tr>
            <tr>
                <td>
                    
                </td>
                <td>
                    </td>
                <td>
                   </td>
                <td>
                    <asp:ImageButton ID="ImageButton_adddl" runat="server" 
                        ImageUrl="~/img/Control/Add.gif" onclick="ImageButton_adddl_Click" ValidationGroup="vg_adddl" />
                </td>
                <td>
                   </td>
                <td>
                    </td>
                <td>
                    </td>
                <td>
                    
                </td>
                <td>
                    </td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </table>
        <asp:Label ID="Label_result3" runat="server" Text="" CssClass="Label_ReturnInfo"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="vg_adddl" Font-Size="Small"/>
        <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="vg_dlgridview" Font-Size="Small"/>
    </ContentTemplate>
    </asp:TabPanel>
    
    </asp:TabContainer>
</asp:Content>
